using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class main_hall : MonoBehaviour
{
    public GameObject head_Image;
    public Sprite head_Sprite;
    public GameObject name_Text;
    //public Text name_Text;
    // Start is called before the first frame update
    void Start()
    {
        string name = "girl1";
        name_Text.GetComponent<Text>().text = name;
        head_Sprite = Resources.Load(name, head_Sprite.GetType()) as Sprite;
        head_Image.GetComponent<Image>().sprite = head_Sprite;
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
